import request from '@/utils/request'

// 查询送样清单列表
export function listSamplelist(query) {
  return request({
    url: '/samplelist/samplelist/list',
    method: 'get',
    params: query
  })
}

// 查询送样清单详细
export function getSamplelist(id) {
  return request({
    url: '/samplelist/samplelist/' + id,
    method: 'get'
  })
}

// 新增送样清单
export function addSamplelist(data) {
  return request({
    url: '/samplelist/samplelist',
    method: 'post',
    data: data
  })
}

// 修改送样清单
export function updateSamplelist(data) {
  return request({
    url: '/samplelist/samplelist',
    method: 'put',
    data: data
  })
}

// 删除送样清单
export function delSamplelist(id) {
  return request({
    url: '/samplelist/samplelist/' + id,
    method: 'delete'
  })
}
